package com.cf.bank.service;

import com.cf.bank.dao.UserMapper;
import com.cf.bank.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenfeng
 * @date 2020/4/5 21:28
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByName(String userName) {
        return userMapper.getUserByUserName(userName);
    }
}
